function AdjustHeight(Stop) 
{
    var myIframe = document.getElementById("page");
    if (myIframe) {
        if (myIframe .contentDocument && myIframe.contentDocument.body.offsetHeight) {
            // W3C DOM (and Mozilla) syntax
            myIframe.height = myIframe.contentDocument.body.offsetHeight + 30;    
        } else if (myIframe.Document && myIframe.Document.body.scrollHeight) {
            // IE DOM syntax
            myIframe.height = myIframe.Document.body.scrollHeight + 30;
        }
    }
	
	if(Stop == 0)
	{
		setTimeout("AdjustHeight(1)", 100);
	}
}

function SetTitle(Titre)
{
	var titre = parent.document.getElementsByTagName('title')[0];

	if (titre.textContent)
		titre.textContent = Titre;
	else if(div.innerText)
		titre.innerText = Titre;
}

function LoadContent(Id, StringParams)
{
	var iframe = document.getElementById('page');
	var doc = iframe.contentWindow.document || iframe.contentDocument;
	
	switch(Id)
	{
		case 0:
			doc.location = 'cadre_galery.php?genre=homme';
			break;
		case 1:
			doc.location = 'cadre_galery.php?genre=femme';
			break;
			
		case 2:
			doc.location = 'cadre_valid.php'+StringParams;
			break;
			
		case 5:
			doc.location = 'cadre_concept.php';
			break;
			
		case 6:
			doc.location = 'cadre_atelier.php';
			break;
			
		case 7:
			doc.location = 'cadre_panier_tmp.php'+StringParams;
			break;
			
		case 8:
			doc.location = 'cadre_cgv.php';
			break;
			
		case 9:
			doc.location = 'cadre_panier.php'+StringParams;
			break;
			
		case 10:
			doc.location = 'cadre_portraits.php';
			break;	
			
		default:
			break;
	}
	
}